package com.aplink.generic.util.validation;

import java.io.Serializable;

public class Validation implements Serializable {
    private static final long serialVersionUID = -472497590923490912L;
	private BlankValidation mBlankRule;
	private DuplicateValidation mDuplicate;
	private LocationValidation mLocationValidation;

	public BlankValidation getBlankRule() {
		return this.mBlankRule;
	}

	public DuplicateValidation getDuplicate() {
		return this.mDuplicate;
	}

	public LocationValidation getLocationValidation() {
		return mLocationValidation;
	}

	public boolean isNoBlank() {
		return this.mBlankRule != null;
	}

	public boolean isNoDuplicate() {
		return this.mDuplicate != null;
	}

	public boolean isValidLocation() {
		return this.mLocationValidation != null;
	}

	public void setBlankRule(final BlankValidation blankRule) {
		this.mBlankRule = blankRule;
	}

	public void setDuplicate(final DuplicateValidation duplicate) {
		this.mDuplicate = duplicate;
	}

	public void setLocationValidation(
	        final LocationValidation locationValidation) {
		mLocationValidation = locationValidation;
	}

}
